﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QLK.Database.BLLs;
using QLK.Web.App_Code;

namespace QLK.Web
{
    public partial class ImportInvoiceManagement : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                LoadAllImportInvoice();
            }
        }
       
        protected void GridImportInvoices_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {

        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect(PageUrls.ImportInvoicesDetails);
        }

        protected void btnAdd2_Click(object sender, EventArgs e)
        {
            Response.Redirect(PageUrls.ImportInvoicesDetails);
        }
        private void LoadAllImportInvoice()
        {
            ImportInvoiceBLL importBLL = new ImportInvoiceBLL();
            GridImportInvoices.DataSource = importBLL.GetAllImportInvoice();
            GridImportInvoices.DataBind();
           
        }
    }
}
